kind: StaticClusterConfiguration
apiVersions:
- apiVersion: deckhouse.io/v1
  openAPISpec:
    type: object
    description: |
      Parameters of a static (bare metal) cluster.

      To change the `StaticClusterConfiguration` resource in a running cluster, run the following command:

      ```shell
      kubectl -n d8-system exec -ti deploy/deckhouse -c deckhouse -- deckhouse-controller edit static-cluster-configuration
      ```
    additionalProperties: false
    required: [apiVersion, kind]
    x-examples:
    - apiVersion: deckhouse.io/v1
      kind: StaticClusterConfiguration
      internalNetworkCIDRs:
      - 10.244.0.0/16
      - 10.50.0.0/16
    properties:
      apiVersion:
        type: string
        description: Version of the Deckhouse API.
        enum: [deckhouse.io/v1, deckhouse.io/v1alpha1]
      kind:
        type: string
        enum: [StaticClusterConfiguration]
      internalNetworkCIDRs:
        type: array
        description: |
          List of internal cluster networks.

          Internal cluster networks connect Kubernetes components (`kube-apiserver`, `kubelet`, etc.).

          The parameter can be omitted (and the `StaticClusterConfiguration` resource can be omitted) if each node in the cluster has only one network interface.
        items:
          type: string
          example: '192.168.42.0/24'
          pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$'
